package top.huxy.boot.service;

import top.huxy.boot.model.dto.DTOComment;
import top.huxy.boot.model.dto.DTOReply;
import top.huxy.boot.model.dto.DTOReplyReply;
import top.huxy.boot.model.entity.User;
import top.huxy.boot.model.vo.VOComment;
import top.huxy.boot.model.vo.VOReply;

import java.util.List;

/**
 * @Classname CommentService
 * @Description CommentService
 * @Date 2021/10/14 16:34
 * @Created by huxy
 */
public interface CommentService {
    boolean addComment(DTOComment comment, User user);

    boolean replyComment(DTOReply reply, User user);

    boolean replyReply(DTOReplyReply reply, User user);

    List<VOComment> getCommentList(Integer blogID);

    List<VOReply> getCommentReplyList(Integer commentId);

    int getCommentCount();

    int getNewCommentCount(long lastDate);
}
